package com.gitee.ywj1352.lerning.ag.common.constants;

/**
 * Created by ywj on 2018/2/8.
 */
public enum StatusCode {

    BaseException(40101,"基础异常"),
    OtherException(500,"其他异常");

    private Integer code;

    private String msg;

    StatusCode(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }


    @Override
    public String toString() {
        return this.msg;
    }


    public Integer toCode(){
        return this.code;
    }
}
